package com.sh.weblogspringboot.admin.convert;

import com.sh.weblogspringboot.admin.vo.blogsettings.FindBlogSettingsRspVO;
import com.sh.weblogspringboot.admin.vo.blogsettings.UpdateBlogSettingsReqVO;
import com.sh.weblogspringboot.common.domain.dos.BlogSettingsDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author songHai
 * @Classname BlogSettingsConvert
 * @Description DO、VO转换类
 * @Date 2025/4/7 20:00
 */
@Mapper
public interface BlogSettingsConvert {

    BlogSettingsConvert INSTANCE = Mappers.getMapper(BlogSettingsConvert.class);

    /**
     * 将VO转换为 DO
     *
     * @param bean VO
     * @return DO
     */
    BlogSettingsDO convertVO2DO(UpdateBlogSettingsReqVO bean);

    /**
     * 将DO转换为VO.
     *
     * @param bean
     * @return
     */
    FindBlogSettingsRspVO convertDO2VO(BlogSettingsDO bean);
}
